package com.config;

import com.entity.Student;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

@Configuration
@ComponentScan("com")
@EnableAspectJAutoProxy //表示启用aspectJ
public class SpringConfiguration {

    @Bean("s1")
    public Student getStudente1(){
        return  new Student("s001","张三","男","软件工程");
    }
}
